home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / Media Mana219536302001.psc / Form2.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-06-21  |  13.0 KB  |  410 lines

  1. VERSION 5.00
  2. Object = "{22D6F304-B0F6-11D0-94AB-0080C74C7E95}#1.0#0"; "MSDXM.OCX"
  3. Begin VB.Form Form2 
  4.    AutoRedraw      =   -1  'True
  5.    BackColor       =   &H00C00000&
  6.    BorderStyle     =   3  'Fixed Dialog
  7.    ClientHeight    =   7500
  8.    ClientLeft      =   390
  9.    ClientTop       =   975
  10.    ClientWidth     =   11160
  11.    ClipControls    =   0   'False
  12.    ControlBox      =   0   'False
  13.    FillStyle       =   0  'Solid
  14.    Icon            =   "Form2.frx":0000
  15.    KeyPreview      =   -1  'True
  16.    LinkTopic       =   "Form2"
  17.    MaxButton       =   0   'False
  18.    MinButton       =   0   'False
  19.    Palette         =   "Form2.frx":0442
  20.    ScaleHeight     =   7587.062
  21.    ScaleMode       =   0  'User
  22.    ScaleWidth      =   11378.82
  23.    ShowInTaskbar   =   0   'False
  24.    Begin VB.HScrollBar HScroll1 
  25.       Enabled         =   0   'False
  26.       Height          =   195
  27.       Left            =   120
  28.       TabIndex        =   9
  29.       Top             =   7200
  30.       Width           =   10965
  31.    End
  32.    Begin VB.Timer Timer1 
  33.       Interval        =   1000
  34.       Left            =   180
  35.       Top             =   5760
  36.    End
  37.    Begin VB.Label Label3 
  38.       Alignment       =   2  'Center
  39.       BackColor       =   &H00C00000&
  40.       Caption         =   "Evaluation Version"
  41.       BeginProperty Font 
  42.          Name            =   "Times New Roman"
  43.          Size            =   8.25
  44.          Charset         =   0
  45.          Weight          =   400
  46.          Underline       =   0   'False
  47.          Italic          =   0   'False
  48.          Strikethrough   =   0   'False
  49.       EndProperty
  50.       ForeColor       =   &H0080FFFF&
  51.       Height          =   240
  52.       Left            =   3480
  53.       TabIndex        =   8
  54.       Top             =   2760
  55.       Width           =   4605
  56.    End
  57.    Begin VB.Label Label2 
  58.       Alignment       =   2  'Center
  59.       AutoSize        =   -1  'True
  60.       BackStyle       =   0  'Transparent
  61.       Caption         =   "Teknet"
  62.       BeginProperty Font 
  63.          Name            =   "Times New Roman"
  64.          Size            =   48
  65.          Charset         =   0
  66.          Weight          =   700
  67.          Underline       =   0   'False
  68.          Italic          =   0   'False
  69.          Strikethrough   =   0   'False
  70.       EndProperty
  71.       ForeColor       =   &H0080FFFF&
  72.       Height          =   915
  73.       Left            =   3360
  74.       TabIndex        =   7
  75.       Top             =   3000
  76.       Width           =   4635
  77.    End
  78.    Begin VB.Line Line1 
  79.       BorderColor     =   &H00FF00FF&
  80.       BorderWidth     =   2
  81.       X1              =   3425.882
  82.       X2              =   8075.294
  83.       Y1              =   2549.253
  84.       Y2              =   2549.253
  85.    End
  86.    Begin VB.Label Label1 
  87.       Alignment       =   2  'Center
  88.       BackColor       =   &H00000000&
  89.       BackStyle       =   0  'Transparent
  90.       Caption         =   "All rights Reserved"
  91.       BeginProperty Font 
  92.          Name            =   "Times New Roman"
  93.          Size            =   9
  94.          Charset         =   0
  95.          Weight          =   400
  96.          Underline       =   0   'False
  97.          Italic          =   0   'False
  98.          Strikethrough   =   0   'False
  99.       EndProperty
  100.       ForeColor       =   &H00FFFFFF&
  101.       Height          =   240
  102.       Index           =   4
  103.       Left            =   3360
  104.       TabIndex        =   6
  105.       Top             =   4560
  106.       Width           =   4815
  107.    End
  108.    Begin VB.Label Label1 
  109.       Alignment       =   2  'Center
  110.       BackColor       =   &H00000000&
  111.       BackStyle       =   0  'Transparent
  112.       Caption         =   "Copyright 1991-2001 by Teknet Technologies, Developed By Munawar Nadeem"
  113.       BeginProperty Font 
  114.          Name            =   "Times New Roman"
  115.          Size            =   9
  116.          Charset         =   0
  117.          Weight          =   400
  118.          Underline       =   0   'False
  119.          Italic          =   0   'False
  120.          Strikethrough   =   0   'False
  121.       EndProperty
  122.       ForeColor       =   &H00FFFFFF&
  123.       Height          =   540
  124.       Index           =   3
  125.       Left            =   3360
  126.       TabIndex        =   5
  127.       Top             =   3960
  128.       Width           =   4815
  129.    End
  130.    Begin VB.Label Label1 
  131.       Alignment       =   2  'Center
  132.       BackColor       =   &H00C00000&
  133.       BackStyle       =   0  'Transparent
  134.       Caption         =   "Ver 1.0"
  135.       BeginProperty Font 
  136.          Name            =   "Bookman Old Style"
  137.          Size            =   9.75
  138.          Charset         =   0
  139.          Weight          =   300
  140.          Underline       =   0   'False
  141.          Italic          =   0   'False
  142.          Strikethrough   =   0   'False
  143.       EndProperty
  144.       ForeColor       =   &H00FFFFFF&
  145.       Height          =   255
  146.       Index           =   1
  147.       Left            =   7080
  148.       TabIndex        =   4
  149.       Top             =   2160
  150.       Width           =   810
  151.    End
  152.    Begin VB.Label Label1 
  153.       Alignment       =   2  'Center
  154.       BackColor       =   &H00C00000&
  155.       BackStyle       =   0  'Transparent
  156.       Caption         =   "Teknet Media Manager"
  157.       BeginProperty Font 
  158.          Name            =   "Bookman Old Style"
  159.          Size            =   11.25
  160.          Charset         =   0
  161.          Weight          =   600
  162.          Underline       =   0   'False
  163.          Italic          =   0   'False
  164.          Strikethrough   =   0   'False
  165.       EndProperty
  166.       ForeColor       =   &H00FFFFFF&
  167.       Height          =   255
  168.       Index           =   0
  169.       Left            =   3240
  170.       TabIndex        =   3
  171.       Top             =   2160
  172.       Width           =   3330
  173.    End
  174.    Begin VB.Label lblPanel 
  175.       BackColor       =   &H00C00000&
  176.       Height          =   2865
  177.       Left            =   3120
  178.       TabIndex        =   2
  179.       Top             =   2040
  180.       Width           =   5160
  181.    End
  182.    Begin VB.Label lblVideoTime 
  183.       Alignment       =   2  'Center
  184.       BackStyle       =   0  'Transparent
  185.       Caption         =   "                     "
  186.       BeginProperty Font 
  187.          Name            =   "Courier New"
  188.          Size            =   9
  189.          Charset         =   0
  190.          Weight          =   400
  191.          Underline       =   0   'False
  192.          Italic          =   0   'False
  193.          Strikethrough   =   0   'False
  194.       EndProperty
  195.       ForeColor       =   &H00FFFFFF&
  196.       Height          =   195
  197.       Left            =   240
  198.       TabIndex        =   1
  199.       Top             =   240
  200.       Width           =   1515
  201.    End
  202.    Begin MediaPlayerCtl.MediaPlayer MediaPlayer 
  203.       Height          =   7080
  204.       Left            =   90
  205.       TabIndex        =   0
  206.       ToolTipText     =   "Teknet Cinema"
  207.       Top             =   90
  208.       Width           =   10965
  209.       AudioStream     =   -1
  210.       AutoSize        =   0   'False
  211.       AutoStart       =   -1  'True
  212.       AnimationAtStart=   -1  'True
  213.       AllowScan       =   -1  'True
  214.       AllowChangeDisplaySize=   -1  'True
  215.       AutoRewind      =   -1  'True
  216.       Balance         =   0
  217.       BaseURL         =   ""
  218.       BufferingTime   =   5
  219.       CaptioningID    =   ""
  220.       ClickToPlay     =   0   'False
  221.       CursorType      =   0
  222.       CurrentPosition =   0
  223.       CurrentMarker   =   0
  224.       DefaultFrame    =   ""
  225.       DisplayBackColor=   0
  226.       DisplayForeColor=   16777215
  227.       DisplayMode     =   0
  228.       DisplaySize     =   4
  229.       Enabled         =   -1  'True
  230.       EnableContextMenu=   0   'False
  231.       EnablePositionControls=   0   'False
  232.       EnableFullScreenControls=   -1  'True
  233.       EnableTracker   =   0   'False
  234.       Filename        =   ""
  235.       InvokeURLs      =   0   'False
  236.       Language        =   -1
  237.       Mute            =   0   'False
  238.       PlayCount       =   1
  239.       PreviewMode     =   0   'False
  240.       Rate            =   1
  241.       SAMILang        =   ""
  242.       SAMIStyle       =   ""
  243.       SAMIFileName    =   ""
  244.       SelectionStart  =   -1
  245.       SelectionEnd    =   -1
  246.       SendOpenStateChangeEvents=   -1  'True
  247.       SendWarningEvents=   -1  'True
  248.       SendErrorEvents =   -1  'True
  249.       SendKeyboardEvents=   -1  'True
  250.       SendMouseClickEvents=   0   'False
  251.       SendMouseMoveEvents=   0   'False
  252.       SendPlayStateChangeEvents=   -1  'True
  253.       ShowCaptioning  =   0   'False
  254.       ShowControls    =   0   'False
  255.       ShowAudioControls=   0   'False
  256.       ShowDisplay     =   0   'False
  257.       ShowGotoBar     =   0   'False
  258.       ShowPositionControls=   0   'False
  259.       ShowStatusBar   =   0   'False
  260.       ShowTracker     =   0   'False
  261.       TransparentAtStart=   -1  'True
  262.       VideoBorderWidth=   1
  263.       VideoBorderColor=   8388608
  264.       VideoBorder3D   =   0   'False
  265.       Volume          =   0
  266.       WindowlessVideo =   0   'False
  267.    End
  268. Attribute VB_Name = "Form2"
  269. Attribute VB_GlobalNameSpace = False
  270. Attribute VB_Creatable = False
  271. Attribute VB_PredeclaredId = True
  272. Attribute VB_Exposed = False
  273. Private Sub Form_Activate()
  274. Form2.WindowState = 0
  275. Form2.Caption = ""
  276. End Sub
  277. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  278. On Error GoTo ErrH
  279.     If KeyCode = vbKeyRight Then
  280.         Form2.MediaPlayer.CurrentPosition = Form2.MediaPlayer.CurrentPosition + 1
  281.     End If
  282.     If KeyCode = vbKeyLeft Then
  283.         Form2.MediaPlayer.CurrentPosition = Form2.MediaPlayer.CurrentPosition - 1
  284.     End If
  285.     If KeyCode = vbKeyF2 Then Form7.Show
  286.     If KeyCode = vbKeyF10 Then Form2.MediaPlayer.DisplaySize = mpFullScreen
  287. Exit Sub
  288. ErrH:
  289.     If Err = 380 Then
  290.         On Error GoTo 0
  291.         Exit Sub
  292.     End If
  293. End Sub
  294. Private Sub Form_Load()
  295.     '----------------------------------------------
  296.     ItemsInFile = Form5.lstFoundFiles.ListCount - 1
  297.     If ItemsInFile > 0 Then
  298.         zeroItemsInFile = False
  299.     Else
  300.         zeroItemsInFile = True
  301.     End If
  302.     '----------------------------------------------
  303. End Sub
  304. Private Sub Form_Unload(Cancel As Integer)
  305. MovieFlag = False
  306. Form5.lstFoundFiles.Clear
  307. Form5ID = False
  308. MovieId = False
  309. End Sub
  310. Private Sub HScroll1_Change()
  311. DoEvents
  312. Form2.MediaPlayer.CurrentPosition = HScroll1.Value
  313. End Sub
  314. Private Sub HScroll1_Scroll()
  315. DoEvents
  316. End Sub
  317. Private Sub MediaPlayer_EndOfStream(ByVal result As Long)
  318. Dim RunIndex As Integer
  319. DoEvents
  320. '---------------------------------------
  321. MovieFlag = False
  322. MovieId = False
  323. HScroll1.Enabled = False
  324. '---------------------------------------
  325. ButtonIndex = False
  326. If zeroItemsInFile = False Then
  327.     If CurrentIndex < ItemsInFile Then
  328.         CurrentIndexOne = CurrentIndex + 1
  329.         Form5.lstFoundFiles.ListIndex = CurrentIndexOne
  330.     '--------------------
  331.         MediaPlayer.FileName = Form5.lstFoundFiles.List(CurrentIndexOne)
  332.     '--------------------
  333.         Form4.Label1.Caption = CurrentIndexOne & " - " & ItemsInFile
  334.         GetFileHeader
  335.     End If
  336. End If
  337. End Sub
  338. Private Sub MediaPlayer_Error()
  339. DoEvents
  340. Form3.lblGo.Caption = ""
  341. Form3.lblStatus.Caption = ""
  342. Form3.lblDrive.Caption = "Error"
  343. Form3.lblDuration.Caption = ""
  344. Form3.lblPosition.Caption = ""
  345. Form3.lblIndex.Caption = ""
  346. '----------------------------------
  347. Unload Form2
  348. Form8.Show
  349. End Sub
  350. Private Sub MediaPlayer_KeyDown(KeyCode As Integer, ShiftState As Integer)
  351. On Error GoTo ErrH
  352.     If KeyCode = vbKeyRight Then
  353.         Form2.MediaPlayer.CurrentPosition = Form2.MediaPlayer.CurrentPosition + 1
  354.     End If
  355.     If KeyCode = vbKeyLeft Then
  356.         Form2.MediaPlayer.CurrentPosition = Form2.MediaPlayer.CurrentPosition - 1
  357.     End If
  358.     If KeyCode = vbKeyF2 Then Form7.Show
  359.     If KeyCode = vbKeyF10 Then Form2.MediaPlayer.DisplaySize = mpFullScreen
  360. Exit Sub
  361. ErrH:
  362.     If Err = 380 Then
  363.         On Error GoTo 0
  364.         Exit Sub
  365.     End If
  366. End Sub
  367. Private Sub MediaPlayer_NewStream()
  368. DoEvents
  369. '===========================
  370. MovieFlag = True
  371. MovieId = True
  372. '---------------------------
  373. TimeValue = True
  374. Form3.lblStatus.Caption = ">"
  375. Form3.lblGo.Caption = CurrentIndexOne
  376. '--------------------------------
  377. HScroll1.Enabled = True
  378. HScroll1.Value = 0
  379. HScroll1.Max = MediaPlayer.Duration
  380. '--------------------------------
  381. CurrentDuration = MediaPlayer.Duration
  382. CurrentFile = UCase$(MediaPlayer.FileName)
  383. CurrentIndex = CurrentIndexOne
  384. '--------------------------------
  385. If FindString = "AVI" Then AviOpen = True
  386. '==========================
  387. ButtonIndex = True
  388. '--------------------------
  389. End Sub
  390. Private Sub MediaPlayer_PlayStateChange(ByVal OldState As Long, ByVal NewState As Long)
  391. If NewState Then
  392.     Unload Form6
  393.  '------------------------------------
  394.  If FindString = "DAT" Or FindString = "AVI" Then
  395.     Form2.Show
  396.     Form2.Refresh
  397. End If
  398. End If
  399. End Sub
  400. Private Sub Timer1_Timer()
  401. '-----------------------
  402. DoEvents
  403. '====================================
  404. If TimeValue Then
  405.     Form3.lblIndex.Caption = CurrentIndexOne & " - " & ItemsInFile
  406.     Form3.lblDuration.Caption = Format(Form2.MediaPlayer.Duration, "00:00.00")
  407.     Form3.lblPosition.Caption = Format(Form2.MediaPlayer.CurrentPosition, "00:00.00")
  408. End If
  409. End Sub
  410.